package securerest;

public class MatrixMeta {

	static public final short ADDITIVE_SPLITTING = 0;
	static public final short HOMOMORPHIC = 1;
	static public final short THREE_SERVER = 2;
	
	private String id;
	private String path;
	private int nRows;
	private int nCols;
	private short protocol;
	
	
	
	public MatrixMeta()
	{
	
	}
	
	public MatrixMeta(MatrixMeta m)
	{
		id = m.getId();
		path = m.getPath();
		nRows = m.getnRows();
		nCols = m.getnCols();
		protocol = m.getProtocol();
	}
	
	public MatrixMeta(String id, String p, int r, int c, short proto)
	{
		this.id = new String (id);
		path = new String (p);
		nRows = r;
		nCols = c;
		protocol = proto;
	}
	
	
	
	
	public String getId() {
		return id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setId(String id) {
		this.id = id;
	}

	
	public int getnRows()
	{
		return nRows;
	}
	public int getnCols()
	{
		return nCols;
	}
	
	/**
	 * @return the protocol
	 */
	public short getProtocol() {
		return protocol;
	}
	/**
	 * @param protocol the protocol to set
	 */
	public void setProtocol(short protocol) {
		this.protocol = protocol;
	}
	@Override
	public String toString() {
		return "Matrix Meta [ID= " + id + ", path of matrix= " + path+ ", nrows: "+nRows+" ,nCols: "+nCols+ " , protocol used :"+ protocol+" ]";
	}


}
